package com.hanserwei.community.entity.request.repair;

import com.hanserwei.community.entity.common.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "维修工单查询请求")
public class RepairQueryRequest extends PageRequest {

    @Schema(description = "记录ID")
    private Integer id;

    @Schema(description = "工单编号")
    private String repairCode;

    @Schema(description = "报修业主ID")
    private Integer ownerId;

    @Schema(description = "业主姓名(模糊匹配)")
    private String ownerName;

    @Schema(description = "处理状态")
    private Integer status;

    @Schema(description = "报修时间下限")
    private LocalDateTime reportTimeFrom;

    @Schema(description = "报修时间上限")
    private LocalDateTime reportTimeTo;

    @Schema(description = "完成时间下限")
    private LocalDateTime finishTimeFrom;

    @Schema(description = "完成时间上限")
    private LocalDateTime finishTimeTo;

    @Schema(description = "备注关键词")
    private String remarks;
}
